]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
telepathyClient: decline dispatch op when approving unsupported channel type
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 5 Jun 2012 10:37:06 +0000 (12:37 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 18 Jun 2012 07:56:12 +0000 (09:56 +0200)
It shouldn't happen in theory but best to be safe than sorry.

https://bugzilla.gnome.org/show_bug.cgi?id=677457

js/ui/telepathyClient.js

index aecf64370e2de89caad85a8694f0dc2365f1fea8..ca60e31a071bffe922cae0d320c5b6e4ef559b82 100644 (file)
@@ -237,6 +237,8 @@ const Client = new Lang.Class({
             this._approveCall(account, conn, channel, dispatchOp, context);
         else if (chanType == Tp.IFACE_CHANNEL_TYPE_FILE_TRANSFER)
             this._approveFileTransfer(account, conn, channel, dispatchOp, context);
+        else
+            Shell.decline_dispatch_op(context, 'Unsupported channel type');
     },
 
     _approveTextChannel: function(account, conn, channel, dispatchOp, context) {